import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    ManyToOne,
    JoinColumn
  } from 'typeorm';
  import { WorkBook } from './workbook.entity';
  @Entity()
  export class WorkSheet {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    sheet_index: number;
  
    @Column()
    name: string;
  
    @Column({
        length: 255,
      })
    cellData: string;

    @ManyToOne((type) => WorkBook, (WorkBook) => WorkBook.workSheet)
    workBook: WorkBook;
  }
  